package com.example.sample.domain.Entity;

//动物
public class Animal implements  IAnimal{

   public Animal(String id, String name)
   {
      Id = id;
      Name = name;
   }

   public  Animal() {}

   public String Id;
   public String Name;

   public void Say()
   {
       System.out.println("嗨，我是动物！");
   }

   @Override
   public void Sleep() {
      System.out.println("嗨，我是动物在睡觉！"+IAnimal.num);
   }
}

